package com.simple.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @Description 动态生成路由
 * @Author xiaoke
 * @Date 2024/8/10 18:00
 * @Version 1.0
 */
@Data
public class SystemManagementRouterVo {
    private Long id;
    //父级id
    private Long pid;
    //路由路径
    private String path;
    @JsonInclude(JsonInclude.Include.NON_NULL) // 当列表为NULL时不序列化
    //路由名称
    private String name;
    //路由元信息
    private  RouterMetaVo meta;
    //子路由
    @JsonInclude(JsonInclude.Include.NON_EMPTY) // 当列表为空时不序列化
    private List<SystemManagementRouterVo> children;
}
